package top.wshape1.shiziapi.message.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @TableName t_message_broadcast_read
 */
@TableName(value = "t_message_broadcast_read")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class MessageBroadcastRead implements Serializable {

    @TableId
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 广播消息的id
     */
    private Long msgId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 是否已读（1已读，0未读）
     */
    private Integer isRead;

    private Date readTime;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}